<template>
  <div id="nav">
    <router-view />
  </div>
</template>
<script>
import { defineComponent, provide, reactive, readonly } from "vue";
export default defineComponent({
  name: "App",
  components: {},
  props: ["score"],
  setup() {
    const movie_types = reactive({
      coming_soon: "即将上映",
      in_theaters: "正在热映",
      top250: "热门电影",
    });
    provide("movie_types", readonly(movie_types));
    const setCategoryName = (key, name) => {
      movie_types[key] = name;
    };
    provide("setCategoryName", setCategoryName);
  },
});
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
